﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SalaryKOG
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            ProcessDay d = new ProcessDay();
            string date = "12/01/2014";
            DateTime dateTime = Convert.ToDateTime(date);
            
            long sum, sumday;
            sumday = dateTime.DayOfYear;
            int year = dateTime.Year;
            sum = (year - 1) / 1 + ((year - 1) / 4 - (year - 1) / 100) + (year - 1) / 400 + sumday;
            sum = sum % 7;



            lblMonth.Text = DateTime.Now.Month.ToString();
            lblYear.Text = DateTime.Now.Year.ToString();

        }

        private void label11_Click(object sender, EventArgs e)
        {
            Salary_KOG frm = new Salary_KOG();
            frm.Show();
           
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void textBox29_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox2_DoubleClick(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        
    }
}
